<?php
class Users extends Zend_Db_Table_Abstract
{
	protected $_name = 'users';

	public function fetchAllInfo() {
		$select = $this->select();
		$select->from($this->_name);
		$select->setIntegrityCheck(false);
		$select->join("userProfiles", "userProfiles.userId = {$this->_name}.id");
		$this->getAdapter()->setFetchMode(Zend_Db::FETCH_OBJ);
		return $this->getAdapter()->fetchAll($select);
	}
}